<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表编辑</title>
    <script src="/jquery/jquery-3.2.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <style>
        .box{
            width:700px;
            margin: 0 auto;
        }
        body{
            background-color:rgb(243,243,243);
        }
    </style>
</head>
<body>
<div>
    <div class="box layui-form">
        <div class="layui-form-item" style="margin-top: 30px">
            <label class="layui-form-label">用户学号：</label>
            <div class="layui-input-inline">
                <input type="text" name="userCode" id="userCode" lay-verify="title" autocomplete="off" placeholder="" class="layui-input" disabled>
            </div>
            <label class="layui-form-label" style="margin-left: 70px;">用户昵称：</label>
            <div class="layui-input-inline">
                <input type="text" id="nickname" name="nickname" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div>
                <label class="layui-form-label">消费金额：</label>
                <div class="layui-input-inline">
                    <input type="text" id="consumption" name="consumption" lay-verify="title" autocomplete="off" placeholder="" class="layui-input">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label" style="margin-left: 70px;">用户状态：</label>
                <div class="layui-input-inline">
                    <select name="status" lay-verify="required" style="width: 190px; height: 38px;" id="status">
                        <option value="2">正常</option>
                        <option value="3">禁言</option>
                        <option value="4">注销</option>
                        <option value="5">封停</option>
                    </select>
                </div>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">用户介绍：</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remarks" id="remarks" style="resize:none;"></textarea>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">个性签名：</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" id="freestyle" style="resize:none;"></textarea>
            </div>
        </div>
    </div>
    <input id="updateDate" hidden/>
</div>
</body>
<script>
    layui.use(['jquery','layer','table','form'],function() {
        var $ = layui.jquery;
        var layer = layui.layer;
        var table = layui.table;
        var form = layui.form;
        //回显
        var UserStatus = JSON.parse(localStorage.getItem("UserStatus"));
        $("#status").val(UserStatus);
        form.render("select");
    })
</script>
</html>